﻿<Page
    x:Class="PlayToReceiver81.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:PlayToReceiver81"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="140" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <!-- Back button and page title -->
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"></ColumnDefinition>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="pageTitle" Grid.Column="1" Text="JumpStart PlayTo Receiver"
                       VerticalAlignment="Center"
                       Style="{StaticResource HeaderTextBlockStyle}" />
            <ToggleSwitch Header="Receiver Broadcast" Grid.Column="2" HorizontalAlignment="Right" Margin="0,0,50,0" Toggled="ToggleSwitch_Toggled" />
        </Grid>

        <Rectangle Grid.Row="1" Fill="#FF3C3C3C" />
        <MediaElement x:Name="VideoPlayer" Margin="19" Grid.Row="1" />

    </Grid>
</Page>
